from PyQt6.QtWidgets import QProgressDialog,QLabel,QHBoxLayout
from PyQt6.QtCore import Qt

class WaitPromptBox(QProgressDialog):


    def __init__(self,parent=None,text=None):
        super().__init__(parent=parent)

        self.setupUi(text)


    def setupUi(self,text):
        
        self.setWindowModality(Qt.WindowModality.WindowModal)


        self.setWindowTitle("PDF转换工具")
        if text:
            self.setLabelText(text)
        self.setMinimum(0)
        self.setMaximum(0)



    